class inttest
{
public static void main(String[] args)
{

	Calculator c = new Calculator();
	int i = c. add(10,20);
	float f = c.add(10,20);
	double d = c.add(22.3003,28.3234234);
	double r = c.areaOfArectangle(10.01,15.02);
	double c = c.areaOfAcircle(10);
	System.out.println(i);
	System.out.println(f);
	System.out.println(d);
	System.out.println(r);
	System.out.println(c);

// Fibonacci series	
		int[] res=calculator.generatefibonacci(10);
		for(int i=0;i<res.length;i++) 
		System.out.println(res[i]);
	
//Linear Search
		int[] linear = Calculator.randInt(20);
		int key = 50;
		System.out.println("\n\nLinear search\n array is : ");
		Calculator.printInt(linear);
		System.out.println("\nKey is :"+key +"  Res is :"+ Calculator.linearSearch(linear,key)+"Pos");

//Binary search
		int[] binary = {10,50,60,70,90};
		int bkey = 50;
		System.out.println("\n\nBinary search\n array is : ");
		Calculator.printInt(binary);
		System.out.println("\nKey is :"+bkey +"  Res is :"+ Calculator.binarySearch(binary,bkey)+"Pos");

	}
}


